package com.yidu.sanrenxing.homedata.service.impl;

import com.yidu.sanrenxing.homedata.dao.CommotidyMapper;
import com.yidu.sanrenxing.homedata.domain.Commotidy;
import com.yidu.sanrenxing.homedata.service.CommotidyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommotidyServiceImpl implements CommotidyService {
    @Autowired
    CommotidyMapper commotidyMapper;

    @Override
    public Integer selectByComserid(int comserid) {
        return commotidyMapper.selectByComserid(comserid);
    }

    @Override
    public List<Integer> selectByComseridAll(int comserid) {
        return commotidyMapper.selectByComseridAll(comserid);
    }

    @Override
    public Commotidy selectByComId(int comid) {
        return commotidyMapper.selectByComId(comid);
    }

    @Override
    public List<Commotidy> selectAll() {
        return commotidyMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(int comid) {
        return commotidyMapper.deleteByPrimaryKey(comid);
    }

    @Override
    public int insert(Commotidy record) {
        return commotidyMapper.insert(record);
    }

    @Override
    public int insertSelective(Commotidy record) {
        return commotidyMapper.insertSelective(record);
    }

    @Override
    public Commotidy selectByPrimaryKey(int comid) {
        return commotidyMapper.selectByPrimaryKey(comid);
    }

    @Override
    public int updateByPrimaryKeySelective(Commotidy record) {
        return commotidyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Commotidy record) {
        return 0;
    }
}
